piecewise functions limits